package com.clock.system.service;

import com.clock.common.core.domain.AjaxResult;
import org.springframework.stereotype.Service;

/**
 * 发送邮件验证码
 * @author CYJ
 */
public interface IEmailCodeService {
    /**
     * @param userName
     * @param email
     * @return AjaxResult
     */
    AjaxResult sendEmailCode(String userName,String email);

    /**
     * 验证验证码
     * @param userName
     * @param code
     * @return
     */
    AjaxResult authEmailCode(String userName,String code);
}
